package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PatientVisitsMapper;
import com.ruoyi.system.domain.PatientVisits;
import com.ruoyi.system.service.IPatientVisitsService;

/**
 * 核酸预约检测Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@Service
public class PatientVisitsServiceImpl implements IPatientVisitsService 
{
    @Autowired
    private PatientVisitsMapper patientVisitsMapper;

    /**
     * 查询核酸预约检测
     * 
     * @param id 核酸预约检测主键
     * @return 核酸预约检测
     */
    @Override
    public PatientVisits selectPatientVisitsById(Long id)
    {
        return patientVisitsMapper.selectPatientVisitsById(id);
    }

    /**
     * 查询核酸预约检测列表
     * 
     * @param patientVisits 核酸预约检测
     * @return 核酸预约检测
     */
    @Override
    public List<PatientVisits> selectPatientVisitsList(PatientVisits patientVisits)
    {
        return patientVisitsMapper.selectPatientVisitsList(patientVisits);
    }

    /**
     * 新增核酸预约检测
     * 
     * @param patientVisits 核酸预约检测
     * @return 结果
     */
    @Override
    public int insertPatientVisits(PatientVisits patientVisits)
    {
        return patientVisitsMapper.insertPatientVisits(patientVisits);
    }

    /**
     * 修改核酸预约检测
     * 
     * @param patientVisits 核酸预约检测
     * @return 结果
     */
    @Override
    public int updatePatientVisits(PatientVisits patientVisits)
    {
        return patientVisitsMapper.updatePatientVisits(patientVisits);
    }

    /**
     * 批量删除核酸预约检测
     * 
     * @param ids 需要删除的核酸预约检测主键
     * @return 结果
     */
    @Override
    public int deletePatientVisitsByIds(Long[] ids)
    {
        return patientVisitsMapper.deletePatientVisitsByIds(ids);
    }

    /**
     * 删除核酸预约检测信息
     * 
     * @param id 核酸预约检测主键
     * @return 结果
     */
    @Override
    public int deletePatientVisitsById(Long id)
    {
        return patientVisitsMapper.deletePatientVisitsById(id);
    }
}
